package com.hdax.dm.rest;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hdax.dm.common.config.api.SeatControllerApi;
import com.hdax.dm.entity.scheduler.DmSchedulerSeat;
import com.hdax.dm.service.SeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SeatRestService implements SeatControllerApi {


    @Autowired
    private SeatService seatService;

    @Override
    public DmSchedulerSeat seat(Long scheduleId, Long x, Long y) {
        return seatService.seats(scheduleId, x, y);
    }

    @Override
    public Integer seatUpdate(List<DmSchedulerSeat> seats) {
        return seatService.seatUpdate(seats);
    }

    @Override
    public Boolean ishaveSeatUpdate(Long status,String orderNo) {
        return seatService.ishaveSeatUpdate(status,orderNo);
    }

}

